package interview;

import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;

public class FunctionInterface {
    public static int a = 1;
    public static void main(String[] args) {
        Predicate<Integer> test1 = (n) -> n % 2 == 0;
        System.out.println(test1.test(4));
        System.out.println(test1.test(5));
        Consumer<Integer> test2 = (n) -> System.out.println(n + 1);
        test2.accept(1);
        Function<String, Integer> test3 = s -> s.length() + 1;
        System.out.println(test3.apply("abcd"));
//        Predicate
//        Consumer;
//        Function;
//        Checker
    }
}
